package com.teacher.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.teacher.common.CommonResult;
import com.teacher.pojo.dto.stuclass.StuClassGetDto;
import com.teacher.pojo.entity.StuClass;
import com.teacher.pojo.vo.stuclass.StuClassGetVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zfm
 * @since 2021-07-17
 */
public interface StuClassMapper extends BaseMapper<StuClass> {

    /**
     * 查询班级
     *
     * @param page
     * @param dto
     * @return
     */
    IPage<StuClassGetVo> getPage(@Param("page") Page<StuClassGetVo> page, @Param("dto") StuClassGetDto dto);

    /**
     * 获取可查看年级
     *
     * @return
     */
    List<String> getYearList();

}
